package com.gt.quality.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gt.quality.base.BaseCommonService;
import com.gt.quality.system.entity.SysRoleDept;
import com.gt.quality.base.pojo.BaseLimitRequest;
import com.gt.quality.base.pojo.LayerListViewObject;

import java.util.List;

/**
 * 角色和部门关联表(SysRoleDept)表服务接口
 *
 * @author makejava
 * @since 2026-11-25 16:30:08
 */
public interface SysRoleDeptService extends BaseCommonService<SysRoleDept> {

    /**
     * Description:  分页查询
     *
     * @param limitRequest 分页查询参数
     * @author: makeJava
     * @date: 2026-11-25 16:30:08
     * @return:com.baomidou.mybatisplus.core.metadata.IPage
     */
    @Override
    IPage<SysRoleDept> queryLimitPage(BaseLimitRequest<SysRoleDept> limitRequest);


    /**
     * Description:  批量新增
     *
     * @param entityList entityList
     * @author: makeJava
     * @date: 2026-11-25 16:30:08
     * @return:Integer
     */
    @Override
    Integer saveBatchByEasyBaseMapper(List<SysRoleDept> entityList);

    /**
     * 角色绑定部门
     * @param roleId roleId
     * @return LayerListViewObject
     */
    LayerListViewObject buildTreeDeptInfo(Long roleId);


}


